package org.mzyyn.qr.feign.qq;

import org.mzyyn.qr.feign.qq.vo.JscodeSessionVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author lipeng
 * @description
 * @date 2024/9/3 10:15
 */
@FeignClient(url = "https://api.q.qq.com",name = "qqRpcClient",configuration = QqFeignConfig.class)
public interface QqRpcClient {

    @GetMapping("/sns/jscode2session")
    JscodeSessionVO getSessionInfo(
            @RequestParam("appid") String appid,
            @RequestParam("secret") String secret,
            @RequestParam("js_code") String code,
            @RequestParam("grant_type") String grantType
    );

}
